package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.WorkOrderPersonEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ly1666
 * @date 2019/3/15 下午2:43
 * @since v1.0
 * @version v1.0
 */
@Repository
@Mapper
public interface WorkOrderPersonDao {

    Integer insert(WorkOrderPersonEntity workOrderPerson);

    Integer update(WorkOrderPersonEntity workOrderPerson);

    Integer deleteByKey(@Param("key") Long key,@Param("corpid") String corpid);

    WorkOrderPersonEntity getByKey (@Param("key") Long key,@Param("corpid") String corpid);

    List<WorkOrderPersonEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param")Map<String ,Object>  param);

}
